﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="Statistic.aspx.cs" Inherits="MedicWeb.forms.Reports.Statistic.Statistic" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 151px;
            text-align: center;
        }
        .style2
        {
            width: 75px;
        }
        .style3
        {
            width: 75px;
            text-align: center;
        }
        .style4
        {
            height: 23px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <asp:Panel ID="Panel1" runat="server">
  
 
            
                                           
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>

        <span>От</span>
                <asp:TextBox ID="OrderDateFrom" runat="server" CssClass = "date"></asp:TextBox>
            <span>&nbsp; До</span>
                <asp:TextBox ID="OrderDateTill" runat="server" CssClass = "date"></asp:TextBox>
                                           
                <asp:Button ID="Button1" runat="server" Text="Выбрать" 
                    onclick="Button1_Click" />

            <table width="90%">
            <tr>
            <td>
                Приказы
            </td>
            <td class="style2"/>

            <td colspan="2" style="font-weight: 700" class="style1">
                Отчет
            </td>

            </tr>
            <tr>
            <td>
            </td>
            </tr>
            <tr>
                <td width="40%">

                    <asp:Panel ID="Panel2" runat="server" ScrollBars="Auto" Height="200" 
                        BorderStyle="Solid">
                                            <asp:GridView ID="n1" runat="server" AutoGenerateColumns="false" >
                        <EmptyDataTemplate>
                            Список пуст
                        </EmptyDataTemplate>
                        <Columns>
                          <asp:TemplateField >
                                <HeaderTemplate>
                                    <asp:CheckBox ID="hcb1" runat="server" oncheckedchanged="hcb1_CheckedChanged" AutoPostBack="True"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="cb" runat="server" />
                                    <asp:HiddenField ID="hf" runat="server" Value='<%#Eval("Id") %>' />
                                </ItemTemplate>
                                
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    
                                     <%#Eval("Date") %>
                                    
                                </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                                <ItemTemplate>
                                     <%#Eval("Number") %>
                                    
                                    
                                </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                                <ItemTemplate>
                                     <%#Eval("Name") %>
                                    
                                    
                                </ItemTemplate>
                        </asp:TemplateField>

                        </Columns>
                    </asp:GridView>
                    
                    </asp:Panel>

                </td>
                <td class="style3">
                
                    <asp:Button ID="btr" runat="server" OnClick="btr_click" Text="В отчет" 
                        UseSubmitBehavior="False" />
                    <br>
                    <asp:Button ID="btl" runat="server" OnClick="btl_click" Text="Из отчета" 
                        UseSubmitBehavior="False" />
                
                </td>
                <td style="text-align: left" width="40%" >
                    
                    <asp:Panel ID="Panel3" runat="server" ScrollBars="Auto" Height="200" 
                        BorderStyle="Solid">
                <asp:GridView ID="n2" runat="server" AutoGenerateColumns="false">
                    <EmptyDataTemplate>
                        Список пуст
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:TemplateField >
                        <HeaderTemplate>
                                    <asp:CheckBox ID="hcb2" runat="server" oncheckedchanged="hcb2_CheckedChanged" AutoPostBack="True"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="cb" runat="server" />
                                    <asp:HiddenField ID="hf" runat="server" Value='<%#Eval("Id") %>' />
                                </ItemTemplate>
                                
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    
                                     <%#Eval("Date") %>
                                    
                                </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                                <ItemTemplate>
                                     <%#Eval("Number") %>
                                    
                                    
                                </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                                <ItemTemplate>
                                     <%#Eval("Name") %>
                                    
                                    
                                </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                </asp:Panel>


                    


                </td>
                <td rowspan="5" style="text-align: center" width="20%">
                    <asp:ImageButton ID="ImageButton1" runat="server"  
                        ImageUrl="~/images/icons/report.jpg" onclick="ImageButton1_Click" 
                        ToolTip="Печать" />
                    <br />
                    <asp:CheckBox ID="cbRegion" runat="server" Text="В разрезе ЛПУ" />
                    <br />
                    <asp:ImageButton ID="ImageButton2" runat="server" 
                        ImageUrl="~/images/icons/excel.jpg" onclick="ImageButton2_Click" 
                        ToolTip="Экспорт в Excel" />
                </td>
            </tr>
            <tr>
            

            <td class="style4">
                Специальности
            </td>




            <td class="style4">
            </td>
            <td class="style4"/>
            </tr>
            <tr>
            <td style="margin-left: 80px" class="style1">
                
                


                <asp:Panel ID="Panel4" runat="server" ScrollBars="Auto" Height="200" 
                    BorderStyle="Solid">
                    
                    
                                            <asp:GridView ID="n3" runat="server" AutoGenerateColumns="false" 
                                                style="text-align: left"  >
                        <EmptyDataTemplate>
                            Список пуст
                        </EmptyDataTemplate>
                        <Columns>
                          <asp:TemplateField >
                                <HeaderTemplate>
                                    <asp:CheckBox ID="hcb3" runat="server" oncheckedchanged="hcb3_CheckedChanged" AutoPostBack="True"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="cb" runat="server" />
                                    <asp:HiddenField ID="hf" runat="server" Value='<%#Eval("Id") %>' />
                                </ItemTemplate>
                                
                            </asp:TemplateField>
                            
                        <asp:TemplateField>
                        <HeaderTemplate>                    
                            <asp:TextBox ID="TextBoxSpec" runat="server" ontextchanged="tbSpeciality_TextChanged"/>
                            
                        </HeaderTemplate>
                                <ItemTemplate>
                                     <%#Eval("Name") %>
                                </ItemTemplate>
                        </asp:TemplateField>

                        </Columns>
                    </asp:GridView>
                    
                    </asp:Panel>

                
                
            </td>
            <td style="text-align: center" class="style2">

                <asp:Button ID="btr2" runat="server" OnClick="btr2_click" Text="В отчет" 
                    UseSubmitBehavior="False" />
                <br>
                <asp:Button ID="btl2" runat="server" OnClick="btl2_click" 
                    style="text-align: center" Text="Из отчета" UseSubmitBehavior="False" />

            </td>
            <td class="style1">
                
                <asp:Panel ID="Panel5" runat="server" ScrollBars="Auto" Height="200" 
                    BorderStyle="Solid">
                <asp:GridView ID="n4" runat="server" AutoGenerateColumns="false" 
                        style="text-align: left">
                    <EmptyDataTemplate>
                        Список пуст
                    </EmptyDataTemplate>
                    <Columns>
                        <asp:TemplateField >
                        <HeaderTemplate>
                                    <asp:CheckBox ID="hcb4" runat="server" oncheckedchanged="hcb4_CheckedChanged" AutoPostBack="True"/>
                                </HeaderTemplate>
                                <ItemTemplate>
                                    <asp:CheckBox ID="cb" runat="server" />
                                    <asp:HiddenField ID="hf" runat="server" Value='<%#Eval("Id") %>' />
                                </ItemTemplate>
                                
                            </asp:TemplateField>
                            
                        <asp:TemplateField>
                                <ItemTemplate>
                                     <%#Eval("Name") %>
                                    
                                    
                                </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                </asp:Panel>

            </td>
            </tr>
            <tr>
            

            <td class="style4">
                ЛПУ
            </td>
            <td/>
            <td/>
            </tr>
            <tr>
                <td style="margin-left: 80px">
                <span>Регион</span>
                    <asp:DropDownList ID="ddlRegion" runat="server" 
                        onselectedindexchanged="ddlRegion_SelectedIndexChanged" AutoPostBack="True">
                    </asp:DropDownList>
                    <br>
                    <span>Район</span><asp:DropDownList ID="ddlLocality" runat="server" AutoPostBack="True" 
                        onselectedindexchanged="ddlLocality_SelectedIndexChanged">
                    </asp:DropDownList>
                    <br>
                    <asp:Panel ID="Panel6" runat="server" BorderStyle="Solid" Height="200" 
                        ScrollBars="Auto">
                        <asp:GridView ID="n5" runat="server" AutoGenerateColumns="false" 
                            style="text-align: left">
                            <EmptyDataTemplate>
                                Список пуст
                            </EmptyDataTemplate>
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="hcb5" runat="server" AutoPostBack="True" 
                                            oncheckedchanged="hcb5_CheckedChanged" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="cb" runat="server" />
                                        <asp:HiddenField ID="hf" runat="server" Value='<%#Eval("Id") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <%#Eval("Title") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </asp:Panel>
                </td>
                <td class="style2" style="text-align: center">
                    <asp:Button ID="btr3" runat="server" OnClick="btr3_click" Text="В отчет" 
                        UseSubmitBehavior="False" />
                    <br>
                    <asp:Button ID="btl3" runat="server" OnClick="btl3_click" 
                        style="text-align: center" Text="Из отчета" UseSubmitBehavior="False" />
                    
                </td>
                <td class="style1">
                    <asp:Panel ID="Panel7" runat="server" BorderStyle="Solid" Height="200" 
                        ScrollBars="Auto">
                        <asp:GridView ID="n6" runat="server" AutoGenerateColumns="false" 
                            style="text-align: left">
                            <EmptyDataTemplate>
                                Список пуст
                            </EmptyDataTemplate>
                            <Columns>
                                <asp:TemplateField>
                                    <HeaderTemplate>
                                        <asp:CheckBox ID="hcb6" runat="server" AutoPostBack="True" 
                                            oncheckedchanged="hcb6_CheckedChanged" />
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="cb" runat="server" />
                                        <asp:HiddenField ID="hf" runat="server" Value='<%#Eval("Id") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField>
                                    <ItemTemplate>
                                        <%#Eval("Title") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                    </asp:Panel>
                </td>
        </table>
    </script>
    </ContentTemplate>
        </asp:UpdatePanel>
      </asp:Panel>  
</asp:Content>
